Skip to content

feat(orders): ORDERS-7965 align date format and status badge between returns listing and details page - #2732

Merged
jpajar merged 1 commit into
feature/PROJECT-7525-new-returns-flowfrom
ORDERS-7965_2
Aug 26, 2026
Merged

feat(orders): ORDERS-7965 align date format and status badge between returns listing and details page#2732
jpajar merged 1 commit into
feature/PROJECT-7525-new-returns-flowfrom
ORDERS-7965_2

Conversation

@jpajar

@jpajar jpajar commented Aug 26, 2026

Copy link
Copy Markdown

What?

This PR aligns the date format and status badge between the returns listing and details pages.

Requirements

  • CHANGELOG.md entry added (required for code changes only)

Tickets / Documentation

https://bigcommercecloud.atlassian.net/browse/ORDERS-7965

Screenshots (if appropriate)

Before:
image

image

After:
image

image

Note

Low Risk
Presentation-only template and stylesheet changes for visual consistency; no API, auth, or data-handling impact.

Overview
Return details now uses the same status badge styling as the returns listing (account-orderStatus-label and status modifiers), replacing the page-specific returnDetails-statusBadge markup and SCSS.

Date submitted and last update in the summary sidebar use the Do MMM YYYY moment format to match returns-list-v2, instead of MMMM D, YYYY.

SCSS only adds light overrides on the title group for the shared badge (header font, uppercase, margin).

Reviewed by Cursor Bugbot for commit 699bbfe. Bugbot is set up for automated code reviews on this repo. Configure here.

@jpajar
jpajar requested a review from a team as a code owner August 26, 2026 00:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns return details presentation with the returns listing.

Changes:

  • Reuses shared return status badge classes.
  • Standardizes submitted and updated date formats.
  • Adds scoped badge typography overrides.

Accessibility verification: Static audit completed; rendered Lighthouse and screen-reader checks remain manual.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
templates/pages/account/return-details.html Aligns status badges and dates.
assets/scss/components/stencil/returnDetails/_returnDetails.scss Replaces badge styles with scoped shared-class overrides.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

{{#if return_detail.status '===' 'OPEN'}}
<span class="aria-description--hidden">{{lang 'account.returns.details.status_label'}}</span>
<span class="returnDetails-statusBadge returnDetails-statusBadge--open">{{lang 'account.returns.status.open'}}</span>
<span class="account-orderStatus-label account-orderStatus-label--open">{{lang 'account.returns.status.open'}}</span>
@jpajar
jpajar merged commit 5b6890b into feature/PROJECT-7525-new-returns-flow Aug 26, 2026
2 checks passed
@jpajar
jpajar deleted the ORDERS-7965_2 branch August 26, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants